﻿@using AP.Framework.Infrastructure.Repositories
@using AP.Framework.Infrastructure.Database
@{
    ApContext context = new ApContext();   
    CompanyProfileRepository comProfile = new CompanyProfileRepository(context);
    var comProfileList = comProfile.getCompanyList();
}
<div class="section-wrap index-news">
    <div class="section-title section-mark">
        <em style="color: #1EA4E3">栏目导航</em></div>
    <div class="section-content">
        <ul class="links-list">
            @* <li><a href="" class="title">公司简介</a> <span class="time">&gt;&gt;</span></li>
            <li><a href="" class="title">企业文化</a> <span class="time">&gt;&gt;</span></li>
            <li><a href="" class="title">组织架构</a> <span class="time">&gt;&gt;</span></li>
            <li><a href="" class="title">生产设置</a> <span class="time">&gt;&gt;</span></li>
            <li><a href="" class="title">荣誉资质</a><span class="time">&gt;&gt;</span> </li>
            <li><a href="" class="title">销售网络</a><span class="time">&gt;&gt;</span> </li>*@
            @{
                foreach (var comp in comProfileList)
                {
               
                <li><a href="@Url.Action("ViewDetails", "Company", new { companyId = comp.ID })" class="title">@comp.Title</a>
                    <span class="time">&gt;&gt;</span></li>                                   
                }
            }
        </ul>
    </div>
</div>
